package com.md.config.database.slave.balancer;

import com.md.config.database.slave.DataSourceProperty;

import java.util.List;

public abstract class ISlaveSourceLoadBalancer {
  public static <T extends ISlaveSourceLoadBalancer> T of(final Class<T> clazz) {
    try {
      return clazz.newInstance();
    } catch (Exception e) {
      return null;
    }
  }

  public abstract String load(List<DataSourceProperty> dataSourceConfigs);
}
